use crate::core::entity::resource_url::ResourceUrl;
use crate::core::model::resource_version_entry::ResourceVersionEntry;
use serde::Deserialize;
use share::core::channel::Channel;
use share::core::native_version::NativeVersion;

#[derive(Deserialize)]
pub struct PostHotUpdateSettingRequest {
    pub channel: Channel,
    pub native_version: NativeVersion,
    pub resource_version: ResourceVersionEntry,
    pub resource_url: ResourceUrl,
}

#[derive(Deserialize)]
pub struct PutResourceVersionRequest {
    pub channel: Channel,
    pub native_version: NativeVersion,
    pub resource_version: ResourceVersionEntry,
}

#[derive(Deserialize)]
pub struct PutResourceUrlRequest {
    pub channel: Channel,
    pub native_version: NativeVersion,
    pub url: ResourceUrl,
}
